//
//  PeopleViewController.h

//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "PeopleFilterViewController.h"
#import "BaseViewController.h"

enum
{
    BlockMode,
    PeopleMode
};
typedef NSInteger PeopleView;

@class PeopleViewController;

@protocol PeopleViewControllerDelegate <NSObject>

- (void)didSelectedPerson:(NSDictionary*)userinfo;

@end

@interface UIButtonAvatar : UIButton 

@property (assign) __weak NSObject *userInfo;

- (void)makeBoderAndShadow;

@end

@interface PeopleViewController : BaseViewController<CLLocationManagerDelegate,PeopleFilterViewControllerDelegate>
{
    NSMutableArray  *listNearbyPeople;
    NSMutableArray  *listCityPeople;
    
    UILabel *lbl1;
    UILabel *lbl2;
    UITableView *tblView;
    UITableViewCell *myCell;
    CLLocationManager *locationManager;
    //CLLocation *bestEffortAtLocation;
    BOOL isFav;
    NSDictionary *onlineUsers;
    NSString *cityName;
}

@property (nonatomic, retain) CLLocationManager *locationManager;
//@property (nonatomic, retain) CLLocation *bestEffortAtLocation;
@property (retain) IBOutlet UITableView *tblView;
@property (nonatomic, retain) IBOutlet UITableViewCell *myCell;
@property (strong) NSString *currentFilter;
@property (strong) NSString *lastFilter;
@property (nonatomic, assign) BOOL isFav;

@property (retain) IBOutlet UILabel *lbl1;
@property (retain) IBOutlet UILabel *lbl2;
@property (assign) PeopleView peopleView;

@property(nonatomic,assign)id<PeopleViewControllerDelegate>delegate;

- (void)getPeopleWithLocation;
- (void) stopUpdatingLocation;
@end
